(function ($) {
	$(function(){
		$('.rotatingActivated-processed').each(function(){
			if (Drupal.settings.rotatingBanners[this.id].type == "1") {
				var settings = Drupal.settings.rotatingBanners[this.id].camera;
				if (settings.pagination == 1) {
					$(this).find('.rb-slides-camera').css({'margin': 0})
				}
			}
		});
		
		// work page
		$('.article-type-work-teaser').wrapAll('<div class="work-list clearfix" />');
		$('.work-3col .article-type-work-teaser:nth-child(3n), .work-4col .article-type-work-teaser:nth-child(4n)').css({
			'margin-right':0,
			'margin-left':0
		});
		
		$('.work-3col .article-type-work-teaser:nth-child(3n+4), .work-4col .article-type-work-teaser:nth-child(4n+5)').css({
			'clear': 'both'
		});
	 
		$('.meta_share div').each(function() {
			var html = $(this).html();
			html = html.replace(/<\!--/g, '');
			html = html.replace(/-->/g, '');
			jQuery(this).html(html);
		});
	});
})(jQuery);